package com.xmwzw.catpu;

import android.app.Application;

import com.elvishew.xlog.LogConfiguration;
import com.elvishew.xlog.XLog;
import com.raizlabs.android.dbflow.config.FlowManager;
import com.xmwzw.catpu.util.ActivityManagerUtils;

/**
 * @author : wangzw
 * @date : 20-3-31上午9:45
 * @desc : http://oss.pgyer.com/09c7411a25c4dae4a9f9bbaaa0378ca7.apk?auth_key=1586176056-84c334cd22cf2d7f278b015de390d76c-0-19557f97af1f47cb08c96d269fa12c79&response-content-disposition=attachment%3B+filename%3Dapp-debug.apk
 */
public class BaseApplication extends Application {
    private static BaseApplication instance;
    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        XLog.init(new LogConfiguration.Builder().tag("catpu").build());
        FlowManager.init(this);
        ActivityManagerUtils.getInstance().registerActivityListener();

    }

    @Override
    public void onTerminate() {
        super.onTerminate();

    }

    public static BaseApplication getInstance() {
        return instance;
    }
}
